package cn.jiyun.feign;

import cn.jiyun.entity.day08.TrainDto;
import cn.jiyun.utils.ResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Title: TrainFegin
 * @Author 王鸽
 * @Date 2023/8/23 20:31
 */
@FeignClient(name = "p11-day15-train")
public interface TrainFegin {
    @RequestMapping("/train/findTrainNum")
    public ResultResponse findTrainNum();
    @RequestMapping("/train/findTrain")
    public ResultResponse findTrain();
    @RequestMapping("/train/findKcnum1")
    public ResultResponse findKcnum();
    @RequestMapping("/train/findTestnum1")
    public ResultResponse findTestnum();
    @RequestMapping("/train/findtestUser")
    public ResultResponse findtestUser();
    @RequestMapping("/train/findAll2")
    public ResultResponse findAll2(@RequestBody TrainDto trainDto);
    @RequestMapping("/train/findCourseNum")
    public ResultResponse findCourseNum(@RequestParam("tid") Integer tid);
    @RequestMapping("/train/findTestNum")
    public ResultResponse findTestNum(@RequestParam("tid") Integer tid);
    @RequestMapping("/train/findTrain2")
    public ResultResponse findTrain2(@RequestParam("id")Integer id);
    @RequestMapping("/train/findCourse")
    public ResultResponse findCourse(@RequestParam("id") Integer id);
    @RequestMapping("/train/findSj2")
    public ResultResponse findSj2(@RequestParam("id") Integer id);
    @RequestMapping("/train/findTrainAll")
    public ResultResponse findTrainAll(@RequestBody TrainDto trainDto);
}
